package com.example.test19.service;

import com.example.test19.model.MessageInfo;
import com.example.test19.mapper.MessageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageService {


  //
  //@Resource(name = "messageMappper")
    @Autowired
    private MessageMapper messageMapper;

  /**
   *
   * @return
   */
  public List<MessageInfo> select(){
      return  messageMapper.select1();
    }

    public void insert(MessageInfo messageInfo){
        messageMapper.insert1(messageInfo);
    }
}
